home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo off
- C:
- REM ---------------------------------
- REM --- Default Windows directory ---
- REM ---------------------------------
- if '%2' == '' %0 %1 C:\WINDOWS
-
- REM --------------------------------------------------------------------------
- REM --- Windows directory is already specified, continue with installation ---
- REM --------------------------------------------------------------------------
- if '%3' == '~' goto CHECK
-
- REM ---------------------------------
- REM --- Ask for Windows directory ---
- REM ---------------------------------
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ Ready to install WinForce - the Windows application starter... ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- %1tkey * y n "Installation will be made to %2, continue ? (Y/N)"
- if NOT errorlevel 2 goto CHECK
-
- %1tkey * "80 %2" "Enter the name of your Windows directory and press [Enter]:"
- if errorlevel 2 goto QUIT
- call TSET
-
- if '%TSTR%' == '' %0 %1 %2 ~
- %0 %1 %TSTR% ~
-
- :CHECK
- if exist %2\WIN.COM goto INST
- REM -----------------------------------------
- REM --- Any regrets before installation ? ---
- REM -----------------------------------------
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ Check that destination directory below is correct, otherwise abort ║
- echo ║ installation, and start it again with your Windows directory as an argument:║
- echo ║ Example: A:\INSTALL C:\WINDOWS ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- echo.
- %1tkey * n y "Installation will be made to %2, continue ? (Y/N)"
- if NOT errorlevel 3 goto QUIT
-
- :INST
- REM --------------------
- REM --- Installation ---
- REM --------------------
- echo.
- %1tkey * o u "(U)pdate files (recommended) or (O)verwrite ? (U/O)"
- if errorlevel 3 goto END
- if errorlevel 2 goto UPDATE
-
- %1deliv -d -o %2
- goto CONT
-
- :UPDATE
- %1deliv -d -n -o %2
-
- :CONT
- echo.
- %1tkey * "Press any key..."
-
- REM ----------------------------------------------------------------------
- REM --- Information about creating a program object and uninstallation ---
- REM ----------------------------------------------------------------------
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ Installation completed. ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ ╔═══════════════════════╗ ║
- echo ║ ║ Now do the following: ║ ║
- echo ║ ╚═══════════════════════╝ ║
- echo ║ ║
- echo ║ 1) Start WinForce using File Run in Windows ProgramManager/Explorer ║
- echo ║ 2) When starting WinForce the 1st time, you will be prompted to add the ║
- echo ║ WinForce ProgramGroup/Folder to Windows ProgramManager/Explorer. ║
- echo ║ Answer Yes. ║
- echo ║ 3) Inspect the WinForce ProgramGroup/Folder, the template Script file ║
- echo ║ WinForce.WSF and read the online F1 help. ║
- echo ║ ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║When running WinForce in menu mode, complete help is available using F1 key. ║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- echo.
- %1tkey * "Press any key..."
- goto END
-
- REM --------------------------------
- REM --- Installation interrupted ---
- REM --------------------------------
- :QUIT
- echo.
- %1tkey * "Installation interrupted, press any key..."
-
- :END
- echo.
- echo ╔═════════════════════════════════════════════════════════════════════════════╗
- echo ║ To uninstall WinForce (NOT recommended): ║
- echo ║ Delete from your Windows directory the files WinForce.EXE, .INI and .INF , ║
- echo ║ Script file WinForce.WSF and other WinForce Script and debug files. ║
- echo ║Also remove WinForce ProgramGroup/Folder from Windows ProgramManager/Explorer║
- echo ╚═════════════════════════════════════════════════════════════════════════════╝
- echo.
- %1tkey * "Press any key..."
- if exist TSET.BAT del TSET.BAT
- EXIT